package com.leaf.u_springboot.log;

import org.apache.log4j.Layout;
import org.apache.log4j.spi.LoggingEvent;

public class MyLayout1 extends Layout {

	public MyLayout1(){}
	
	public void activateOptions(){}
	
	public String format(LoggingEvent event){
		StringBuffer sbuf = new StringBuffer(128);
//		sbuf.append((event.timeStamp - event.getStartTime()));
//		sbuf.append(" ");
//		sbuf.append(event.level.toString());
//		sbuf.append(" [");
//		sbuf.append(event.getThreadName());
//		sbuf.append("] ");
//		sbuf.append(event.getLoggerName());
//		sbuf.append(" - ");
//		sbuf.append(event.getRenderedMessage());
//		sbuf.append(LINE_SEP); 
		
		return sbuf.toString();
	}
}
